<?php

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Require the base controller
require_once JPATH_COMPONENT.DS.'controllers'.DS.'admin.php';

// Init the admin controller
$classname    = 'Controller_admin';
$controller   = new $classname( );

if($task = JRequest::getVar('task')) {
    if($ids = JRequest::getVar('ids', 'default value', 'post')){
	echo $ids;
    }
}else {
//set default task
    $task = 'display';
}
// Perform the Request task
$controller->execute($task);

// Redirect if set by the controller
$controller->redirect();


//don't use a closing php tag in php-only files (common practice to avoid wite-spaces in the output code